package com.itheima.test;


public class Text {
    public static void main(String[] args) {
        //定义对象
        Object obj ;
        try {
            //生成类对象
            Class clazz = Class.forName("com.itheima.test.Test");
            //获取类的对象
            obj = clazz.newInstance();
            System.out.println(obj);
        } catch (Exception e) {
        }
    }
}
